﻿using System.Collections.Generic;
using System.IO;
using SpecFlowTfsLinker.Entities;

namespace SpecFlowTfsLinker.SpecFlowFile
{
    public abstract class SpecFlowFile : ISpecFlowFile
    {
        protected readonly UserStory Us;

        protected SpecFlowFile(UserStory us)
        {
            Us = us;
        }

        protected string FolderName
        {
            get { return string.Format("SpecFlow_{0}", Us.Id); }
        }

        public string VirtualPath
        {
            get { return Path.Combine(FolderName, FileName); }
        }

        public abstract string FileName { get; }
    }
}